package com.cairenhui.trust.auto.task.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cairenhui.trust.auto.task.executor.WitnessOrderFetchExecutor;
import com.cairenhui.trust.auto.task.service.impl.BaseOrgTaskService;
import com.cairenhui.trust.auto.task.service.impl.BaseSysUserTaskService;
import com.cairenhui.trust.auto.task.service.impl.CrmSaleProjectsTaskService;

@Controller
public class TestController {

	@Autowired
	private BaseOrgTaskService se = new BaseOrgTaskService();
	@Autowired
	private BaseSysUserTaskService baseSys;
	@Autowired
	private CrmSaleProjectsTaskService crmSaleProjectsTaskService;
	@Autowired
	private WitnessOrderFetchExecutor witnessOrderFetchExecutor; 
	
	@RequestMapping("/")
	public String index(){
		
		return "index";
	}
	
	@RequestMapping("/test")
	public String test(){
		
		witnessOrderFetchExecutor.execute();
		return "index";
	}
	
}
